package com.zking.Controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.zking.service.EmpService;

@Controller
public class EmpController {
	
	@Autowired
	private EmpService empService;
	
	public void adddd() {
		//if() {}
		empService.add();
	}
	
	public void delete() {
		empService.del();
	}
	
	public void findBy() {
		empService.findByName();
	}
	
	public void update() {
		empService.update();
	}
}
